project (graph_optimizer)
cmake_minimum_required (VERSION 2.8.4) # This version was released 2011-02-16

set(ALL_TARGET_LIBRARIES "")

include_directories(
  ./include/
)

include(cmake/global_defination.cmake)
include(cmake/eigen.cmake)
include(cmake/g2o.cmake)
include(cmake/YAML.cmake)
include(cmake/geographic.cmake)
add_library(libGraphOptimizer
src/vertex/vertex_p.cpp
src/vertex/vertex_q.cpp
src/vertex/vertex_bg.cpp
src/edge/edge_gnss.cpp
src/edge/edge_og.cpp
src/optimizer/optimizer.cpp
src/utility/data_types.cpp
)
target_link_libraries(libGraphOptimizer ${ALL_TARGET_LIBRARIES})
list(APPEND ALL_TARGET_LIBRARIES libGraphOptimizer)

add_executable(fusion src/apps/fusion.cpp)
target_link_libraries(fusion ${ALL_TARGET_LIBRARIES})
